﻿<%@ include file="/common/validate.jsp"%>
<%
    // 关于
    List<Map> list = QBuilder.db("basedb").select("new map(name as name, logo as logo, phone as phone, address as address, mail as mail, introduce as introduce, mpweixin as mpweixin, weibo as weibo, website as website, post_code as post_code)").from("app_about").where(new Where("hospital=", hospital).and("status=", STATUS_ENABLE)).page(1, 1).query().getResultObj();
    if (isEmpty(list)) {
		list = QBuilder.db("basedb").select("new map(name as name, logo as logo, phone as phone, address as address, mail as mail, introduce as introduce, mpweixin as mpweixin, weibo as weibo, website as website, post_code as post_code)").from("app_about").where(new Where("hospital=", 999).and("status=", STATUS_ENABLE)).page(1, 1).query().getResultObj();
		if (isEmpty(list)) {
			msg = new Message(30041, "没有找到关于的信息");
			Tools.encryptPrint(out, msg);
			return;
		}
    }
    msg.put("data", list.get(0));
    Tools.encryptPrint(out, msg);
%>
